import unittest, os
import INIReader, Log  # @UnresolvedImport


class TestClasses(unittest.TestCase):
    def setUp(self):
        self.Log = Log.Log(os.path.join("..", "Resources", "Configs", "test.log"))
        self.INIReader = INIReader.INIReader(self.Log)
    
    def tearDown(self):
        pass
    
    def testGameCore(self):
        pass
    
    def testINIReader(self):
        self.Log.printToLog("====")
        self.Log.printToLog("Testing: Testing INIReader")
        
        returnFirstTest = self.INIReader.readINIfile("game.ini")
        returnSecondTest = self.INIReader.readINIfile("notexisting.ini")
        
        self.assertIsNotNone(returnFirstTest)
        self.assertIsNone(returnSecondTest)
        
        self.Log.printToLog("Testing: INIReader korrekt getestet")    

if __name__ == "__main__":
    unittest.main()
